package com.ruoyi.flowable.service;

import com.ruoyi.flowable.domain.Draft;
import com.ruoyi.flowable.domain.vo.DraftVo;
import com.ruoyi.flowable.domain.bo.DraftBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 表单草稿Service接口
 *
 * @author zxw
 * @date 2023-05-16
 */
public interface IDraftService {

    /**
     * 查询表单草稿
     */
    DraftVo queryById(Long draftId);

    /**
     * 查询表单草稿列表
     */
    TableDataInfo<DraftVo> queryPageList(DraftBo bo, PageQuery pageQuery);

    /**
     * 查询表单草稿列表
     */
    List<DraftVo> queryList(DraftBo bo);

    /**
     * 新增表单草稿
     */
    Boolean insertByBo(DraftBo bo);

    /**
     * 修改表单草稿
     */
    Boolean updateByBo(DraftBo bo);

    /**
     * 校验并批量删除表单草稿信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
